<?php
/* @var $this GroupController */

$this->pageTitle=Yii::app()->name;
?>
<h1>小组列表</h1>

<div class="form">
<form action="<?=$this->createUrl('search/index',array('type'=>'group'))?>" method="get">
	<input type="hidden" name="r" value="search/index"/>	
	<input type="hidden" name="type" value="group"/>	
	<input type="text" name="key"/>
	<input type="submit" value="搜索"/>
</form>
</div>

<?php foreach($list as $item):?>
	<div><a href="<?=$this->createUrl('group/visit',array('id'=>$item->id))?>"><?=$item->name?></a></div>
<?php endforeach;?>
